package cn.hnevc.shenhaibing;

/*
 * 
 * 快递任务类
 */

public class SendTask {
	private String number;//快递单号
	private double goodsWeight;
	
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public double getGoodsWeight() {
		return goodsWeight;
	}
	public void setGoodsWeight(double goodsWeight) {
		this.goodsWeight = goodsWeight;
	}
	public SendTask() {
		super();
	}
	public SendTask(String number,double goodsWeighe) {
		this.goodsWeight = goodsWeighe;
		this.number = number;
	}
	//发货之前
	public void sendBefore() {
		System.out.println("订单开始处理，仓库验货中。。。");
		System.out.println("货物的重量："+this.getGoodsWeight()+"kg");
		System.out.println("货物检验完毕！");
		System.out.println("货物填充完比！");
		System.out.println("运货人已通知！");
		System.out.println("快递单号:"+this.getNumber());
	}
	//运输过程中发送货物
	public void send(Tansportation t,GPS tool) {
		System.out.println("运货人"+t.getAdmin()+"正在驾驶编号为"+t.getNumber()+"的"+t.getMode1()+"发送货物!");
		t.transport();
		String showCoordinate =tool.showCoordinate();
		System.out.println("货物当前的坐标为"+showCoordinate);
	}
	//运输完成
	public void sendAfter(Tansportation t) {
		System.out.println("货物运输任务已完成！");
		System.out.println("运货人"+t.getAdmin()+"所驾驶的编号为"+t.getNumber()+"的"+t.getMode1()+"已归还!");
	}
}